'), System, and exec in Perl
In Perl, the check mark (''), system, and exec are used to execute the command order. This article will show us how they are used, approached, and differentiated.
I. utilization methods
1. check mark ('')
First of all,
PHP starts windows applications, executes bat batch processing, and executes cmd commands (exec and system functions). exec Functions
Exec or system can call the cmd command.
Directly run the Code:
Copy codeThe Code is as follows:/** Open the
(1) exec Function Description
The fork function is used to create a child process, which is almost a copy of the parent process. Sometimes we want the child process to execute another program, the exec function family provides a method to start
Example: Delete/home/raven, including all files named Abc.txt in subdirectories:Find/home/raven-name Abc.txt | Xargs RM-RFIf Xargs is not used, then:Find/home/raven-name abc.txt-exec RM-FV {};Preface: About the Find commandBecause find has powerful
EXEC command related in Linux:
Both exec and source are part of the Bash Internal command (builtins commands), where you enter man exec or man source to view all internal command information.The bash shell commands fall into two categories: external
EXEC command related in Linux:
Both exec and source are part of the Bash Internal command (builtins commands), where you enter man exec or man source to view all internal command information.The bash shell commands fall into two categories: external
EXEC command related in LinuxBoth exec and source belong to the Bash Internal command (builtins commands), where you can view all the internal command information by entering man exec or man source under bash.The bash shell commands are divided into
Question 1:find:paths must precede expression[[email protected] data]# find/oracle/backup/exp/data-name exp_table01_db01_*.dmp.gz-atime +2 exec rm-rf {}\;Find:paths must precede expression:exp_table01_db01_20170928235039.dmp.gzDescription: When you
Find command Exec
Find is a commonly used Linux Command, but we generally look for it not only, but also further operations. At this time, the role of exec becomes apparent.
Exec explanation:
-The exec parameter is followed by the command, and its
Inux Process Control-exec series is called the exec system call, actually in Linux, there is no EXEC () function form, exec refers to a set of functions, a total of 6, respectively:#include int execl (const char *path, const char *arg, ...);int
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.